package com.musemun.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 响应码及描述常量
 * </p>
 *
 * @author ZWYZY
 * @since 2020/4/21
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    EXCEL_NOT_DATA(-7,"当前没数据"),
    USER_NOT_FOUND(10000, "用户不存在"),
    ERROR(-1, "未知错误"),
    SUCCESS(200, "响应成功"),
    CHANGE(1, "改变成功"),
    CHANGE_NOT(0, "改变失败"),
    LOGGING_NOT_FOUND(20000, "错误日志不存在"),
    CROP_NOT_FOUND(30000, "作物未找到"),
    WARNING_NOT_FOUND(40000, "预警不存在"),
    GREENHOUSE_NOT_FOUND(50000, "大棚不存在"),
    DATA_ERROR(-2, "输入数据错误"),
//    GREENHOUSE_NOT_FOUND(50000, "大棚不存在"),
    USER_PASSWORD_NOT_FOUND(4001001, "用户名密码不匹配"),
    USER_BAN(4001002, "该用户已经被禁用请联系管理员"),
    CODE_NULL(4001003, "验证码失效请重新获取"),
    CODE_ERROR(4001004, "请输入正确的验证码"),
    USERNAME_HAS(4001005, "该账号已被占用"),
    REGIST_ERROR(4001006, "注册失败"),
    PHONE_NOT_TRUE(4001007, "手机号格式错误"),
    SEND_MAX(4001008, "当日发送已上限"),
    USER_HAS_LOGIN(4001009,"用户已经登录无需再登录"),
//    GREENHOUSE_NOT_FOUND(50000, "大棚不存在");

    //GREENHOUSE_NOT_FOUND(50000, "文物不存在"),
    //DATA_ERROR(-2, "输入数据错误"),
    DATABASE_DEPENDENT_ERROR(-3, "数据库数据之间依赖错误"),
    File_ERROR(-4, "上传的文件错误"),
    EXCELDATA_ERROR(-5, "文件内容错误,操作全部取消"),
    DATA_NULL(-6, "查询的信息为空");

    private Integer code;
    private String msg;
}
